package com.dormitory.management.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.dormitory.management.system.entity.Access;
import com.dormitory.management.system.resp.AccessResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 门禁表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
@Mapper
public interface AccessMapper extends BaseMapper<Access> {
    IPage<AccessResp> getAccessPageStudent(IPage<AccessResp> page, @Param(Constants.WRAPPER) QueryWrapper<AccessResp> QueryWrapper);
    IPage<AccessResp> getAccessPageUser(IPage<AccessResp> page, @Param(Constants.WRAPPER) QueryWrapper<AccessResp> QueryWrapper);
    IPage<AccessResp> getAccessPageHousemaster(IPage<AccessResp> page, @Param(Constants.WRAPPER) QueryWrapper<AccessResp> QueryWrapper);
}
